//
//  GonggaoViewCell.m
//  YiqiMobile
//
//  Created by henry on 13-3-31.
//  Copyright (c) 2013年 henry. All rights reserved.
//

#import "GonggaoViewCell.h"
#import "Utility.h"
#import "Config.h"


@implementation GonggaoViewCell

- (id)initWithStyle:(UITableViewCellStyle)style reuseIdentifier:(NSString *)reuseIdentifier
{
    self = [super initWithStyle:style reuseIdentifier:reuseIdentifier];
    if (self) {
        // Initialization code
        self.selectionStyle=UITableViewCellSelectionStyleNone;
        self.backGround=[[UIImageView alloc] initWithFrame:CGRectZero];
          self.backgroundColor=UIColorFromRGB(0xfafafa);
       self.backGround.backgroundColor=[UIColor colorWithRed:235.0/255 green:235.0/255 blue:235.0/255 alpha:1.0];
       self.contentText=[Utility detailTextLabel:CGRectZero andFontSize:15.0f];
        
        self.contentText.textColor=UIColorFromRGB(0x000000);
        self.contentText.numberOfLines=1;
        [self  addSubview:self.backGround];
        [self  addSubview:self.contentText];
        
        UIButton *customButton = [UIButton buttonWithType:UIButtonTypeCustom];
        customButton.frame=CGRectZero;
        self.voiceButton=customButton;
        [self addSubview:self.voiceButton];
        
        // Initialization code
        self.eMAsyncImageView=[[EMAsyncImageView alloc] initWithFrame:CGRectMake(10,12,100,100)];
        [self  addSubview:self.eMAsyncImageView];

    }
    return self;
}

- (void)setSelected:(BOOL)selected animated:(BOOL)animated
{
    [super setSelected:selected animated:animated];

    // Configure the view for the selected state
}



@end
